import React from 'react';
import { Result } from 'antd';
import 'antd/es/button/style/index';
import 'antd/es/result/style/index';
import icon from "./imgs/icon.png";

/**
 * 菜单配置为空列表时，跳转页面
 * @returns
 */
export default function DrsNoAuth(_ref) {
  var _userInfo$menuList;
  var userInfo = _ref.userInfo;
  return /*#__PURE__*/React.createElement(Result, {
    icon: /*#__PURE__*/React.createElement("img", {
      src: icon,
      title: "403"
    }),
    title: "403",
    subTitle: !(userInfo !== null && userInfo !== void 0 && (_userInfo$menuList = userInfo.menuList) !== null && _userInfo$menuList !== void 0 && _userInfo$menuList.length) ? '当前角色下没有配置访问菜单，请联系管理员' : '对不起，您没有足够的权限访问页面'
  });
}